{% extends "start.html" %}

{% if form.errors %}
    <p class="error">Sorry, that's not a valid username or password</p>
  {% endif %}
    {% if user.is_authenticated %}
        {% block profile %}
            {% if user.last_login == " " %}
                <p>Login to play!</p>
            {% else %}
                Already logged in!
            {% endif %}
        {% endblock %}
    {% else %}        
        {% block topbar %}
            {% if user.is_authenticated %}
                &emsp;Welcome back ! &emsp;&emsp;&emsp;&emsp;&emsp;
                &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
                &emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;&emsp;
                <a href="/accounts/logout/">Logout</a>
            {% else %}
                New user <A HREF="/register">Register here!</A>
                
                <form action='.' method='post'>
                <label for="username">User name:</label>
                <input type="text" name="username" value="" id="username">
                <label for="password">Password:</label>
                <input type="password" name="password" value="" id="password">

                <input type="submit" value="login" />
                <input type="hidden" name="next" value="{{ next }}" />
                <form action='.' method='post'>                
            {% endif %}                
        {% endblock %}
    {% endif %}
  

{% block pageTitle %}The Developer Oddyssey{% endblock %}



{% block content %}
  <font size="4"><strong>
     Play the game and
        <ul>
            <li>Solve challenging quests</li>
            <li>Earn money(virtual money)</li>
            <li>Earn experience</li>
        </ul>
        ... and
        <ul>
            <li>... be the programmer number <font size="5">1</font></li>
        </ul>
  </strong></font>
{% endblock %}
